package com.example.tass.domain;

import cn.tass.exceptions.TAException;
import com.alibaba.fastjson.annotation.JSONField;

public class MyImportUserCertRequest extends MyBaseRequest{
    private String certId;
    private String cert;
    private int certType;
    private String rootCertId;
    @JSONField(
            name = "isOverwrite"
    )
    private boolean isOverwrite;

    public MyImportUserCertRequest() {
    }

    public String getCertId() {
        return this.certId;
    }

    public void setCertId(String certId) {
        this.certId = certId;
    }

    public String getCert() {
        return this.cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public int getCertType() {
        return this.certType;
    }

    public void setCertType(int certType) {
        this.certType = certType;
    }

    public String getRootCertId() {
        return this.rootCertId;
    }

    public void setRootCertId(String rootCertId) {
        this.rootCertId = rootCertId;
    }

    public boolean isOverwrite() {
        return this.isOverwrite;
    }

    public void setOverwrite(boolean isOverwrite) {
        this.isOverwrite = isOverwrite;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.certId, "certId");
        this.checkParamIsEmpty(this.cert, "cert");
    }
}
